// 护眼模式遮罩层
.view-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none; // 穿透
  background-color: rgb(204, 232, 207);
  opacity: .1;
  z-index: 999999;
}

// 滚动容器
.read-scroll {
  & {
    width: 100%;
    height: 100%;
    background-color: var(--theme);
    color: var(--read-font-color);
    transition: background-color .4s;
  }

  // 全部内容
  .content {
    & {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: auto;
    }

    // 加载样式
    .loading {
      width: 100%;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* 弹窗总体样式 */
    .popupStyle {
      & {
        display: flex;
        width: 100%;
        height: 100%;
        background-color: var(--theme);
        flex-direction: column;
        align-items: center;
      }

      .info {
        & {
          width: 100%;
          height: 1.3rem;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          position: relative;
        }

        img {
          width: 0.7rem;
          height: 0.9rem;
          object-fit: cover;
          border-radius: 3px;
          margin-left: 5%;
        }

        .box1 {
          & {
            display: flex;
            flex-direction: column;
            position: absolute;
            left: calc(5% + 0.82rem);
            width: calc(90% - 0.7rem - 0.8rem);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .name {
            font-size: 0.16rem;
            font-weight: bold;
          }

          .author {
            font-size: 0.12rem;
            opacity: 0.5;
            margin-top: 0.08rem;
          }
        }

        .box2 {
          & {
            margin-right: 5%;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
          }

          .progress {
            margin-bottom: 0.05rem;
            font-size: 0.14rem;
          }

          .a {
            font-size: 0.1rem;
            opacity: 0.5;
          }

        }
      }

      .status {
        & {
          width: 100%;
          height: 0.4rem;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          border-bottom: 0.6px solid var(--thin-line-color);
          font-size: 0.12rem;
        }

        .c {
          margin-left: 5%;
        }

        .sort {
          font-weight: bold;
          margin-right: 5%;
        }
      }

      .scroll2 {
        & {
          width: 100%;
          height: calc(100% - 1.9rem);
          overflow-y: scroll;
        }

        .list {
          & {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            height: auto;
          }

          .item {
            width: 95%;
            height: 0.5rem;
            font-size: 0.14rem;
            border-bottom: 0.6px solid var(--thin-line-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-start;
            flex: auto 0 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }

          .selected {
            color: #F2693F;
          }
        }
      }
    }

    // 顶部提示内容
    .top {
      & {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        position: fixed;
        top: 0rem;
        width: 100%;
        background-color: var(--theme);
        height: 0.4rem;
        font-size: 0.13rem;
        transition-property: background-color, transform;
        transition-duration: .4s;
        z-index: 99;
      }

      .nowChapter {
        margin-left: 5%;
        margin-bottom: 0.08rem;
        width: calc(90% - 0.66rem - 0.3rem);
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.5;
        white-space: nowrap;
      }

      .encourage {
        & {
          font-size: 0.12rem;
          margin-right: 5%;
          margin-bottom: 0.08rem;
          position: relative;
          background-color: rgba(160, 160, 160, 0.2);
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          width: 0.66rem;
          padding-top: 0.03rem;
          padding-bottom: 0.03rem;
        }

        .progress {
          height: 100%;
          align-self: flex-start;
          position: absolute;
          background-color: rgba(160, 160, 160, 0.4);
        }

        .num {
          color: #F2693F;
        }
      }
    }

    // 自动阅读设置
    .autoSet {
      & {
        position: fixed;
        width: 40%;
        height: 0.35rem;
        border-radius: 30px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        bottom: 0.83rem;
        left: 30%;
        z-index: 97;
        font-size: 0.14rem;
      }

      img {
        width: 0.15rem;
        height: 0.15rem;
        margin-left: 0.05rem;
      }
    }

    // 自动阅读的设置内容
    .autoSetCon {
      & {
        position: fixed;
        width: 90%;
        height: 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        left: 5%;
        border-radius: 10px;
        bottom: 0.83rem;
        z-index: 98;
        transition: all .4s;
      }

      .slider {
        width: 90%;
        height: 32.5%;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      .mark {
        & {
          width: 90%;
          height: 32.5%;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: flex-start;
          font-size: 0.13rem;
        }

        span {
          opacity: 0.7;
        }
      }

      .exit {
        width: 100%;
        height: 35%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 0.6px solid var(--thin-line-color);
        font-size: 0.15rem;
      }

    }

    // 底部提示内容(状态和小广告)
    .bottom {
      & {
        position: fixed;
        width: 100%;
        bottom: 0%;
        height: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--theme);
        transition-property: background-color, transform;
        transition-duration: .4s;
      }

      .status {
        & {
          width: 90%;
          height: 0.4rem;
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          align-items: center;
          font-size: 0.13rem;
        }

        .pro {
          opacity: 0.8;
        }

        .t {
          opacity: 0.8;
        }


        .te {
          & {
            display: flex;
            flex-direction: row;
            align-items: center;
            opacity: 0.8;
          }

          .ele {
            & {
              margin-left: 0.06rem;
              position: relative;
              display: flex;
              align-items: center;
              justify-content: center;
            }

            img {
              height: 0.25rem;
              width: 0.25rem;
              object-fit: cover;
            }

            .num {
              position: absolute;
              left: 0.03rem;
              height: 0.06rem;
              border-radius: 1px;
              background-color: var(--read-font-color);
            }
          }
        }

      }

      .ad {
        width: 100%;
        height: 0.4rem;
        background-color: red;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }

    // 顶部菜单
    .top-menu {
      & {
        position: fixed;
        top: 0%;
        height: 0.45rem;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        z-index: 100;
        background-color: var(--theme);
        transition-property: background-color, transform;
        transition-duration: .4s;
      }

      .back {
        margin-top: 0.05rem;
        margin-left: 5%;
        height: 0.16rem;
        width: 0.16rem;
      }

      .right {
        & {
          margin-right: 5%;
          display: flex;
          flex-direction: row;
          align-items: center;
          font-size: 0.16rem;
          margin-top: 0.05rem;
        }

        .yuan {
          margin-right: 0.25rem;
        }


        .download {
          height: 0.2rem;
          width: 0.2rem;
          margin-left: 0.25rem;
          margin-right: 0.25rem;
          object-fit: cover;
        }

        .more {
          height: 0.2rem;
          width: 0.2rem;
          object-fit: cover;
        }
      }
    }

    // 章节滑块移动悬浮提示内容
    .sliderTip {
      & {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        width: 60%;
        bottom: 1.3rem;
        height: 0.5rem;
        color: #8a8a8a;
        font-size: 0.13rem;
        border-radius: 30px;
        left: 20%;
        pointer-events: none; // 穿透
        transition: opacity .5s;
      }

      .progress {}

      .chapterTitle {
        margin-top: 0.06rem;
        width: 80%;
        text-align: center;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
    }

    // 底部菜单
    .bottom-menu {
      & {
        position: fixed;
        width: 100%;
        height: 1.2rem;
        transition-property: background-color, transform;
        transition-duration: .4s;
        bottom: 0%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--theme);
        z-index: 100;
      }



      .chapter-change {
        & {
          width: 90%;
          height: 50%;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          font-size: 0.15rem;
        }

        .able {
          opacity: 0.5;
        }

        .slider {
          width: 60%;
        }
      }

      .bright {
        & {
          position: absolute;
          width: 100%;
          display: flex;
          flex-direction: column;
          height: 1rem;
          background-color: var(--theme);
          align-items: center;
          transition-property: background-color, transform;
          transition-duration: .4s;
          top: 100%;
          z-index: 99;
        }

        .line {
          background-color: var(--thin-line-color);
          width: 100%;
          height: 0.6px;
          transition: all .4s;
        }

        .bri {
          & {
            width: 90%;
            height: 49.8%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
          }

          span {
            font-size: 0.14rem;
          }

          .slider {
            width: 70%;
          }

          img {
            width: 0.18rem;
            height: 0.18rem;
          }
        }

        .eye {
          & {
            width: 90%;
            height: 49.8%;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            font-size: 0.14rem;
          }
        }
      }

      .setting {
        & {
          position: absolute;
          width: 100%;
          display: flex;
          flex-direction: column;
          height: 2.1rem;
          background-color: var(--theme);
          align-items: center;
          transition-property: background-color, transform;
          transition-duration: .4s;
          top: 100%;
          z-index: 99;
        }

        .fontsize {
          & {
            width: 90%;
            height: 26.5%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
          }

          .title {
            font-size: 0.13rem;
            width: 0.4rem;
          }

          .box {
            & {
              width: calc(100% - 0.4rem);
              display: flex;
              flex-direction: row;
              align-items: center;
              justify-content: space-between;
            }

            .f {
              font-size: 0.13rem;
            }

            .de {
              display: flex;
              justify-content: center;
              align-items: center;
              width: 0.7rem;
              height: 0.3rem;
              border-radius: 50px;
              background-color: rgba(160, 160, 160, 0.1);
              font-size: 0.16rem;
            }

            .in {
              display: flex;
              justify-content: center;
              align-items: center;
              width: 0.7rem;
              height: 0.3rem;
              border-radius: 50px;
              background-color: rgba(160, 160, 160, 0.1);
              font-size: 0.16rem;
            }

            .fam {
              & {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                width: 1.1rem;
                height: 0.3rem;
                border-radius: 50px;
                background-color: rgba(160, 160, 160, 0.1);
                font-size: 0.14rem;
              }

              img {
                margin-left: 0.02rem;
                width: 0.14rem;
                height: 0.14rem;
              }
            }
          }



        }

        .theme {
          & {
            width: 90%;
            height: 26.5%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
          }

          .title {
            font-size: 0.13rem;
            width: 0.4rem;

          }

          .box {
            & {
              width: calc(100% - 0.4rem);
              display: flex;
              flex-direction: row;
              align-items: center;
              justify-content: space-between;
              overflow-x: scroll;
            }

            .white {
              border-radius: 100%;
              height: 0.26rem;
              width: 0.26rem;
              background-color: #F6F6F6;
              transition: border .4s;
              flex: auto 0 0;
            }

            .yellow {
              border-radius: 100%;
              height: 0.26rem;
              width: 0.26rem;
              background-color: #DED9C5;
              transition: border .4s;
              flex: auto 0 0;
            }

            .green {
              border-radius: 100%;
              height: 0.26rem;
              width: 0.26rem;
              background-color: #D7E3CB;
              transition: border .4s;
              flex: auto 0 0;
            }

            .blue {
              border-radius: 100%;
              height: 0.26rem;
              width: 0.26rem;
              background-color: #CCD8E4;
              transition: border .4s;
              flex: auto 0 0;
            }

            .dark {
              & {
                border-radius: 100%;
                height: 0.26rem;
                width: 0.26rem;
                background-color: #161616;
                transition: all .3s;
                display: flex;
                justify-content: center;
                align-items: center;
                transition: border .4s;
                flex: auto 0 0;
              }

              img {
                width: 0.15rem;
                height: 0.15rem;
              }
            }

            .more {
              & {
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                font-size: 0.14rem;
                width: 0.7rem;
                height: 0.3rem;
                border-radius: 50px;
                background-color: rgba(160, 160, 160, 0.1);
                flex: auto 0 0;
              }

              img {
                margin-left: 0.02rem;
                width: 0.14rem;
                height: 0.14rem;
              }
            }
          }


        }

        .mode {
          & {
            width: 90%;
            height: 26.5%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
          }

          .title {
            font-size: 0.13rem;
            width: 0.4rem;

          }

          .box {
            & {
              width: calc(100% - 0.4rem);
              display: flex;
              flex-direction: row;
              align-items: center;
              justify-content: space-between;
            }

            .real {
              font-size: 0.14rem;
              display: flex;
              justify-content: center;
              align-items: center;
              border-radius: 50px;
              width: 0.68rem;
              height: 0.3rem;
              transition: border .4s;

            }

            .cover {
              font-size: 0.14rem;
              display: flex;
              justify-content: center;
              align-items: center;
              border-radius: 50px;
              width: 0.68rem;
              height: 0.3rem;
              transition: border .4s;

            }

            .trans {
              font-size: 0.14rem;
              display: flex;
              justify-content: center;
              align-items: center;
              border-radius: 50px;
              width: 0.68rem;
              height: 0.3rem;
              transition: border .4s;

            }

            .scrol {
              font-size: 0.14rem;
              display: flex;
              justify-content: center;
              align-items: center;
              border-radius: 50px;
              width: 0.68rem;
              height: 0.3rem;
              transition: border .4s;

            }
          }



        }

        .more {
          & {
            width: 100%;
            height: 20%;
            display: flex;
            flex-direction: row;
            align-items: center;
            font-size: 0.15rem;
          }

          .auto {
            width: 49.5%;
            display: flex;
            justify-content: center;
            align-items: center;
          }

          .li {
            width: 0.6px;
            height: 40%;
            transition: all .4s;
            background-color: var(--thin-line-color);
          }

          .set {
            width: 49.5%;
            display: flex;
            justify-content: center;
            align-items: center;
          }
        }

        .line {
          width: 100%;
          height: 0.6px;
          transition: all .4s;
          background-color: var(--thin-line-color);
        }


      }

      .tabs {
        & {
          width: 90%;
          height: 50%;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          font-size: 0.13rem;
          z-index: 100;
          background-color: var(--theme);
          transition-property: background-color, transform;
          transition-duration: .4s;
        }

        .item {
          & {
            display: flex;
            flex-direction: column;
            align-items: center;
          }

          img {
            width: 0.25rem;
            height: 0.25rem;
          }

          span {
            margin-top: 0.05rem;
            opacity: 0.5;
          }
        }
      }
    }

    // 小说封面
    .index {
      & {
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
      }

      .start {
        position: absolute;
        width: 40%;
        height: 0.4rem;
        left: 30%;
        bottom: 12%;
      }

      .novel-info {
        & {
          width: 100%;
          padding-top: 0.25rem;
          padding-bottom: 0.15rem;
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        .cover {
          width: 1.1rem;
          height: 1.4rem;
          object-fit: cover;
          border-radius: 0.03rem;
        }

        .name {
          font-size: 0.2rem;
          margin-top: 0.13rem;
          width: 90%;
          display: flex;
          justify-content: center;
          align-items: center;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .more {
          & {
            margin-top: 0.1rem;
            display: flex;
            flex-direction: row;
            align-items: center;
            font-size: 0.12rem;
          }

          span {
            margin-right: 0.06rem;
          }

          .line {
            margin-right: 0.06rem;
            width: 0.6px;
            height: 0.1rem;
            opacity: 0.5;
            background-color: var(--read-font-color);
            transition: all .4s;
          }

          .author {
            color: #4095E5;
          }
        }
      }

      .line {
        height: 0.6px;
        width: 100%;
        transition: all .4s;
        background-color: var(--thin-line-color);
      }

      .novel-data {
        & {
          display: flex;
          flex-direction: row;
          width: 90%;
          padding-top: 0.15rem;
          padding-bottom: 0.12rem;
          justify-content: space-between;
          align-items: center;
          border-bottom: 0.6px solid var(--thin-line-color);
          transition: border .4s;

        }

        .a {
          & {
            display: flex;
            flex-direction: column;
          }

          .rate {
            & {
              display: flex;
              flex-direction: row;
              align-items: flex-end;
            }

            .grade {
              font-size: 0.18rem;
              font-weight: bold;
            }

            .fen {
              font-size: 0.12rem;
              margin-left: 0.03rem;
              margin-bottom: 0.02rem;
            }
          }

          .clicktimes {
            margin-top: 0.05rem;
            font-size: 0.12rem;
            opacity: 0.5;
          }
        }

        .b {
          & {
            display: flex;
            flex-direction: column;
          }

          .readpeople {
            & {
              display: flex;
              flex-direction: row;
              align-items: flex-end;
            }

            .num {
              font-size: 0.18rem;
              font-weight: bold;
            }

            .people {
              font-size: 0.12rem;
              margin-left: 0.03rem;
              margin-bottom: 0.02rem;
            }
          }

          .onread {
            margin-top: 0.05rem;
            font-size: 0.12rem;
            opacity: 0.5;
          }
        }

        .c {
          & {
            display: flex;
            flex-direction: column;
          }

          .updatetime {
            & {
              display: flex;
              flex-direction: row;
            }

            .time {
              font-size: 0.18rem;
            }
          }

          .t {
            margin-top: 0.05rem;
            font-size: 0.12rem;
            opacity: 0.5;
          }
        }
      }

      .introduce {
        & {
          display: flex;
          flex-direction: column;
          margin-top: 0.2rem;
          width: 90%;
        }

        .title {
          & {
            display: flex;
            flex-direction: row;
            align-items: center;
            width: 100%;
            overflow: hidden;
            flex-wrap: nowrap;
          }

          .t {
            width: 0.5rem;
            font-size: 0.15rem;
            font-weight: bold;
          }

          .tags {
            & {
              width: calc(100% - 0.5rem);
              display: flex;
              flex-direction: row;
              align-items: center;
              overflow-x: scroll;
            }

            /* 隐藏横向滚动条 */
            &::-webkit-scrollbar {
              display: none
            }

            span {
              border-radius: 0.5rem;
              font-size: 0.12rem;
              background-color: rgba(160, 160, 160, 0.2);
              padding-left: 0.08rem;
              padding-right: 0.08rem;
              padding-top: 0.05rem;
              padding-bottom: 0.05rem;
              margin-right: 0.05rem;
              flex: auto 0 0;
            }
          }

        }

        .context {
          margin-top: 0.12rem;
          width: 100%;
          height: auto;
          font-size: 0.13rem;
          line-height: 0.2rem;
          opacity: 0.7;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 7;
          overflow: hidden;
        }

      }

      .review {
        & {
          margin-top: 0.22rem;
          width: 90%;
          display: flex;
          flex-direction: column;
        }

        .title {
          font-size: 0.15rem;
          font-weight: bold;
          margin-bottom: 0.12rem;
        }

        .context {
          & {
            display: flex;
            width: 100%;
            flex-direction: row;
          }

          img {
            width: 0.2rem;
            height: 0.2rem;
            border-radius: 100%;
            object-fit: cover;
          }

          .a {
            & {
              display: flex;
              flex-direction: column;
              margin-left: 0.06rem;
              width: calc(100% - 0.26rem);
            }

            span {
              opacity: 0.7;
              font-size: 0.13rem;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
              line-height: 0.2rem;
            }

            .b {
              & {
                display: flex;
                flex-direction: row;
                margin-top: 0.03rem;
                align-items: center;
              }

              span {
                margin-left: 0.06rem;
                font-size: 0.12rem;
                opacity: 0.5;
              }
            }
          }
        }
      }

      .tip {
        & {
          width: 90%;
          margin-top: 0.3rem;
          display: flex;
          flex-direction: column;
          font-size: 0.14rem;
          opacity: 0.8;
          align-items: center;
          position: absolute;
          bottom: 0.2rem;
        }

        .b {
          margin-top: 0.15rem;
        }
      }




    }

    // 章节内容
    .chapter {
      & {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 1.2rem;
      }

      .title {
        width: 90%;
        margin-top: 0.6rem;
        margin-bottom: 0.3rem;
        font-size: 0.18rem;
        font-weight: bold;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .context {
        & {
          width: 90%;
          height: auto;
          display: flex;
          flex-direction: column;
          word-wrap: break-word;
        }
      }

      .navigation {
        & {
          display: flex;
          flex-direction: row;
          width: 80%;
          height: 1.2rem;
          align-items: center;
          justify-content: space-between;
        }

        .btn1 {
          width: 0.8rem;
          height: 0.3rem;
        }

        .btn2 {
          width: 0.8rem;
          height: 0.3rem;
        }
      }

      .over {
        width: 100%;
        margin-top: 0.3rem;
        opacity: 0.7;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.15rem;
      }
    }

  }
}
